/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package com.plian.system.entity.yth.finance;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.plian.system.entity.yth.YthBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * 财务管理-月度债务指标录入记录表实体类
 *
 * @author BladeX
 * @since 2023-02-07
 */
@Data
@TableName("finance_monthly_debt")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "MonthlyDebt对象", description = "财务管理-月度债务指标录入记录表")
public class MonthlyDebt extends YthBaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "所属年月（2202-10）")
    @TableField("`year_month`")
    private String yearMonth;

    @ApiModelProperty(value = "所属年（2000）")
    @TableField("`year`")
    private Integer year;

    @ApiModelProperty(value = "所属月（10）")
    @TableField("`month`")
    private Integer month;

    @ApiModelProperty(value = "单据编号（YDZWZB2022100001；YDZWZB+年月+四位序列号）")
    private String number;

    @ApiModelProperty(value = "所属集团id")
    private Long belongGroupId;

    @ApiModelProperty(value = "所属集团")
    private String belongGroupName;

    @ApiModelProperty(value = "企业级次")
    private Integer companyLevel;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "本期账面资产总额")
    private BigDecimal currentTotalFunds;

    @ApiModelProperty(value = "不实资产挂账")
    private BigDecimal currentAssetsCredit;

    @ApiModelProperty(value = "调整后资金总额")
    private BigDecimal currentAdjustTotalFunds;

    @ApiModelProperty(value = "本期账面负债总额")
    private BigDecimal currentTotalDebt;

    @ApiModelProperty(value = "明股实债等付息权益工具")
    private String currentPaymentEquityTool;

    @ApiModelProperty(value = "调整后负债总额")
    private BigDecimal currentAdjustTotalDebt;

    @ApiModelProperty(value = "账面资产负债率(%)")
    private BigDecimal currentBookDebtRatio;

    @ApiModelProperty(value = "实际调整资产负债率(%)")
    private BigDecimal currentActualDebtRatio;

    @ApiModelProperty(value = "带息负债比率（%）")
    private BigDecimal currentInterestDebtRatio;

    @ApiModelProperty(value = "已获利息倍数")
    private BigDecimal currentInterestMultiple;

    @ApiModelProperty(value = "现金流动负债比率（%）")
    private BigDecimal currentCashFlowRatio;

    @ApiModelProperty(value = "本期账面资产总额")
    private BigDecimal collectTotalFunds;

    @ApiModelProperty(value = "不实资产挂账")
    private BigDecimal collectAssetsCredit;

    @ApiModelProperty(value = "调整后资金总额")
    private BigDecimal collectAdjustTotalFunds;

    @ApiModelProperty(value = "本期账面负债总额")
    private BigDecimal collectTotalDebt;

    @ApiModelProperty(value = "明股实债等付息权益工具")
    private String collectPaymentEquityTool;

    @ApiModelProperty(value = "调整后负债总额")
    private BigDecimal collectAdjustTotalDebt;

    @ApiModelProperty(value = "账面资产负债率(%)")
    private BigDecimal collectBookDebtRatio;

    @ApiModelProperty(value = "实际调整资产负债率(%)")
    private BigDecimal collectActualDebtRatio;

    @ApiModelProperty(value = "带息负债比率（%）")
    private BigDecimal collectInterestDebtRatio;

    @ApiModelProperty(value = "已获利息倍数")
    private BigDecimal collectInterestMultiple;

    @ApiModelProperty(value = "现金流动负债比率（%）")
    private BigDecimal collectCashFlowRatio;

    @ApiModelProperty(value = "填报日期")
    private LocalDate reportTime;

    @ApiModelProperty(value = "填报组织id")
    private Long reportOrgId;

    @ApiModelProperty(value = "填报组织名称")
    private String reportOrgName;

    @ApiModelProperty(value = "填报人员id")
    private Long reportUserId;

    @ApiModelProperty(value = "填报人员名称")
    private String reportUserName;

    @ApiModelProperty(value = "流程实例id")
    private String processInstanceId;

    @ApiModelProperty(value = "流程环节（0：企业内审1：上级审核）")
    private Integer processStatus;

    @ApiModelProperty(value = "审核状态（0：草稿1：待审核2：审核中3：已通过4：已驳回）")
    private Integer auditStatus;

    private Boolean isSub;
}
